Merge "Add methods to get and insert primitives." into main