move metatable empty test to types
remove unused variables
getpriority as syscall
remove now unused retnume