fix benchmark
pass node handles instead of ints in bonds and rep
don't use a macro to make it easier to debug
fix bug in alternatives caused by passing wrong key