fix various unused variables uncovered by clang analyzer
add BoundMethod#inspect