fix getPixel and putPixel in Surface. Add new Type struct in Allocator.

getPixel and putPixel used incorrectly ubyte* instead of uint*
getPixel returns now an uint instead of uint*.