Make `from_array`-like methods static.

Fix #45.