all: implement scan-into-map and scan-into-struct