notes: make GET_NIBBLE macro more robust