Suggest a rename to module.serialize().
This is following backbone convention:
Incidentally, @matthew-andrews, I feel tempted to implement this as follows in the PHP port:
$module->serialize(); // returns associative array
$module->toJSON(); // returns JSON-encoded serialization
Even though it is misleading it's consistent with other libs... Maybe it's ok...