Fix wrong dictionary key in OrderDetailView

Reported by @martymcmahon in #1354.

Also added tests for changing the line and order status. Unfortunately,
I had to introduce test-global status pipelines instead of using
overridden_settings(). Even though I both applied it in setUp() and the
individual tests, the forms were rendered with no statuses available.

Fixes #1354.