Fix index view which does not work with --singular

Index view with --singular option does not work fine.

```
$ php oil generate scaffold bbs post_date:date message:varchar[100] --singular
```
It generates the code below.

views/bbs/index.php:
line 13: ```<?php foreach ($bbs as $bbs): ?>		<tr>```