Ported the parameter checking bit of the exlib... maybe now we can start porting some of the corelibs.