Add missing brackets and semicolons to PropertyAccessor examples

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.5+
| Fixed tickets | none
This should also be merged into 2.3.