Added canCreateInstance method to type serializers.
Added test cases.
Cleaning
Feedback implemented