Fixed misleading statements in Marshalling docs and added tests to verify the new documented behaviour