Added primitive: window_type

  This will return a string such as "WINDOW_NORMAL", "WINDOW_DOCK",
 etc.

  This updates #3.