Implement a Scala version of MapBinder.