fix #251 get/set for keypaths with brackets