stash
Added checks for valid representation in constructors of serializers that take a representation.