fixes -Wsign-conversion on 64bit by changing offset to u_int64_t and return an unsigned long long value from output stream offset.
fixes -Wconversion when encoding CGFloat as float in 64bit mode. Encode NSNumber instead of float.
Merge pull request #1607 from jessedc/64bit-warnings

64bit warnings