fix remaining segfault in AStarContainer

also includes a lot of profiling and debugging code to be removed later