add macros make_getters! and make_bool_getters! for #1931