Refactored serializeObject plugin to support nested attributes. Additionally added support to using closing [] in attribute names.