always try to detect the type of a NumbasObject

For some reason, I had a question without the "type" attribute. Here's a hacky fix.