updated form.prep to return JSON object with option to serialize by passing true to function, updated docs and tests to match