Improve Node#replace_property, add tests

Allow regex property name, allow block property name.