handle duplicate class definition errors during module classloading

Signed-off-by: Jon Keys <jon.keys@gmail.com>
Merge pull request #770 from jkeys089/duplicate_class_error

handle duplicate class definition errors during module classloading