Fix spec for #to_hashes and add as alias method for #to_a