Add support for properties

Specifically, `length`.

Also some linting.