helper/schema: validate maps properly [GH-461]