Refactoring type size handler; using Java types as standard