made Buffer float/double read/write consistent