Added support for rubyserial_ondump and rubyserial_onload methods