fixes -Wconversion when encoding CGFloat as float in 64bit mode. Encode NSNumber instead of float.