Changed z-indexing and drawScene

User-defined layers are now multiplied by 2 in order to allow characters
(with variable z-order) to be drawn within the previous layer of an
object for which the user has defined a walk-behind line.