Added checkStackTypes for verifying types of values at end of stack.
Modified lua_pushboolean to take a standard fortran logical value.