Fix some issues with multiple layers and bar charts. (Fixes #177)

Specifically:
  * Fix plots sometimes breaking when color aesthetic is mapped on one layer but
    not on another.
  * Fix bar plots breaking when a continuous color scale is used.
  * Color keys not having an automatic title when the color aesthetic is mapped
    layer-wise.