Improve handling of beans.

Convention: only generate an accessor for isName() if there is also setName()