grid-layout: Use correct orientation when requesting preferred child size

Otherwise width and height are swapped.

https://bugzilla.gnome.org/show_bug.cgi?id=725722