Fixed #1252: Add an option to warn about overwriting native objects.

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>