removed some copy-pasted comment that is incorrect in these contexts
added another test for miget_attr_values(), to catch off-by-one errors
- cleanup #if 0'ed code
- restored needed variables in #if 0 block