Detect getter for property name with dashes

Ensures #foo_bar is not overwritten by getter for property 'foo-bar'.
Add skip guard for JRuby