Various API consistency fixes

To make the API easier and more consistent with MAD-X.