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.
`T` cannot be a function type as they are not valid function parameters.