Fixed bug with lightuserdata functions.

Fixed a pre-existing bug where lightuserdata was never actually used.

T is always a function pointer, but `is(T == function) == false` if T is a function pointer.