Added ability to define default mappings and array mappings.