Fix broadcast_arrays for object dtype

The fix in github issue #3323 broke broadcast_arrays for object arrays (the
error I get it "TypeError: Cannot change data-type for object array.")

This patch resolves this issue and adds regression tests for both this issue
and #3323.