Set a generic title if not present in submission

Also modify attribute lookup to correctly handle both normal JSON Arrays
and Rails' "indexed hash" objects and fix an association validation bug
in nested models.