Ensure consolidator works when functions are reordered

I could only reproduce this error on one machine but there I could reproduce it consistently. nox confirmed on IRC that erlang can reorder functions.