[system.core] Fix some MemoryMappedFile argument checks