Fixed bug in rc_write and in the calls to non-rt in stimgen_interface and kernel.py
rc_write was not working with units correctly and added support for repetitions in stimgen-interface.