Fix for #446.  Note: Also needs applying to other relational types.