Fixed sizeofs to use type instead of var