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

Serializer ignores custom serialization methods of const instances.
Reason is `isCustomSerializable!(const(T))` == `false`.