Handle brackets before/after properties

Fixes #2