Readded support to register Treasure and triggers on any map object layer.