Allow passing an array to View::share. Closes #1204.