I could be wrong but that error message doesn't seem to be related to code you posted.
Are you sure that code is causing the problem? Can you post the code that is using the observable?
The error message seems to be indicating that you are trying to loop over something in an template that is of type object rather than an array.