Fixed util.lua functions

Function "class" should work now and allow both ways to create an
instance - either using the class name or using the method
classname:create
Also removed bloatcode from function "static"