Slightly changed the definition of Firebolt.isEmpty()

Instead of using the typeof operator to check if the value is an object, it checks the value's class. This way, things like RegExps are not considered empty.
Unit tests for Firebolt.isEmpty()