deprecate using expect as array
move deprecation helpers and consolidate
expose expected_as_array