nat: use correct data types for memory sizes