Merge pull request #738 from NileemaJadhav/HR-14-fixes

-- Fix upgrade failure for already existing case types
-- Version fixes for 1.4