vm: Load one instance per class

Use std::map to store loaded classes to avoid multiple "struct klass"
instances per loaded class.

Signed-off-by: Pekka Enberg <penberg@iki.fi>