add 'template_or_serialize' to mutable serializer

Fixes #525
_find_type is not a method but a function
changelog
Merge branch 'template_or_serialize' into devel