Added toClient support for renaming and serverOnly properties