rename as_arrayref to as_hashref