Majiir/Kethane — pull request #265 by taniwha-qf (2014-07-06 08:55:57+00:00)
Title: Fix optional resources.

Correctly set the optional flag in the ResourceRate constructor and
preserve it when building the output rates array.