GEOS-5630 fixing custom dim management

See GEOS-5630