Fixed bugs, added basic object support

Fixed a bug where maps without tile propers would NRE because we tried
to process them without checking if they were real. Added basic object
support to the Layer object, intending to split layers by more than an
enum type.