Added functions for writing basic objects from value (byte/short/int/float)