fixing BCECriterion, adding test, closing https://github.com/torch/nn/pull/10