Fix modal window create/update specs

Don't use .in for the modal window assertions. When capybara waits for
the element to be animated, it will no longer have the .in class.
Check type of variable in reordering action