Allow Function.apply to take typed arrays (fix #442)
Allow arrays to be passed to digitalPulse so square waves can be created easily
Move function defs out of jshardware.h, to avoid compielr warnings