Fix #2560

Originally, the form_open method only set the `'metho="post"'`
attribute when the `$attributes` argument is an empty string.

I changed this to accomodate empty arrays and arrays without a "method"
specification.