Fixed issue #77; constructor is able to handle array of objects now.