Merge pull request #1540 from peter-b/develop

libfoundation: MCRecord fixes.
Merge pull request #1541 from peter-b/develop

libfoundation: __MCForeignValueInitialize: Correctly initialize pointer type.
Merge pull request #1542 from peter-b/develop

libfoundation: MCRecord fixes.