fix more derps

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix -Wall warnings

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix -Wextra warnings

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix -pedantic warnings

Signed-off-by: Mattias Andrée <maandree@operamail.com>
return list of values when freeing a map

Signed-off-by: Mattias Andrée <maandree@operamail.com>