Added modelValues() function to allow for extracting an array of attribute values other than primary keys