[runtime] Add checks for overlapping reference and non-reference fields when using explicit layout. Fixes #23954.