gobject: Assert that GObjects are at least as aligned as basic types
See the commit messages in the branch for reasoning.
This MR is a rebased version of the patches from #1231 (comment 220666), updated to mention the right version numbers.
Closes #1231 (closed)