Pseudo distribute centre now works correctly. There were logic error and math error and typo.
Also, it no longer aligns the elements on the same axis when trying to distribute centre. It should be the caller's responsibility to setup that another axis's behaviour.