Merge pull request #106 from teebrz/master

FreeBSD Compat
	- fix improper handling of fun.apply(null,...)
	- add regression test for fun.apply(null,...)
Merge pull request #108 from teebrz/dev-tom

fix improper handling of fun.apply(null,...)