Fix the lookup order of custom and default type serializers.
Added test