issue #5057, replace deprecated enum with strong typed enum
issue #5057, refactor enum SizeType to strong typed enum