Better RawData wrapping for user-defined objects