transforms/lower_units: fix bugs and add unit test
doc/manual: add ports to index