Allows custom serializable const class/struct instances. Fixes #878

Serializer ignores custom serialization methods of const instances.
Reason is `isCustomSerializable!(const(T))` == `false`.
Merge pull request #879 from japplegame/patch-1

Allows custom serializable const class/struct instances. Fixes #878