Fix resolving of script types in mmbot.core