Implemented the non-replacement form of the "dimnames" function, enabled the replacement form, and added tests.