Fix onpafile... Write some static_asserts to prevent the stupid error from happening again