Add support for properties

Specifically, `length`.
Not sure of the best name for this function