Removed deprecated int based weights

This is the second pull request (first one is #710) which removes the deprecated support for int weights. It replaces the deprecated old method for setting the weights with the new one, which resided under an alternative name in ZParam until now. This breaks the backward compatibility and should be scheduled for version 3.0.0.