Rest of fixes for Weka-dev. Tests succeed.