Problem creating IMAP and CalDav account after upgrade to 5.1.n.n

Please see the discussion around this post, and see if that is the same issue, and can be worked around the same way.