Sets n_properties properties for an object.
Properties to be set will be taken from values. All properties must be
valid. Warnings will be emitted and undefined behaviour may result if invalid
properties are passed in.
the names of each property to be set
the values of each property to be set