Improve debuggability when call-count numbers don't match up
Add test to verify bad query behavior of xblock_handler
Add memoization for has_changes
Pre-cache has_changes when computing ancestors