Just found this thread looking for the arguments for zwave.userCodeV1.userCodeSet and I'm writing a driver for my keypad here too Have a Zipato Z-Wave RFID Keypad here. What are you working on? Would be good to join forces here.
Checkout @mhutchy 's adaptation for inspiration on strings and bytes: