Added setter methods to support Long and references.