Added method to map into an array, useful for non-unique mappings.