hierarchical prelude
fix tests

- comment out loop-srs test as it depends on tpdb whose
installation triggers a package conflict on my machine
optimize and/or on constant lists