Fixed bug under certain compilers
Fixed crash due to a kernel's arguments having changed
Fixed an overly sensitive test case that tended to fail
Merge pull request #107 from peastman/master

Various bug fixes