Added a check if the arguments provided to put_map_assoc/exact is a map, if not a badarg is returned. The problem is that badarg is returned even if other errors should occur, needs to be solved. This branch is pushed in order to receive help for solving this issue